{% extends "adibilisadminBundle::layout.html.twig" %}
 
{% block title %}
  Edition critère - {{ parent() }}
{% endblock %}

{% block adibilisadmin_body %}

{% if app.session.hasFlash('info') %}
        <div class="alert alert-success">
            {{ app.session.flash('info') }}
        </div>
{% endif %}

<h1>Modification de critère</h1>

<div class="well">

<form action="{{ path('criteria_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
    {{ form_widget(edit_form) }}
    <p>
        <button type="submit" class="btn btn-primary">Valider</button>
    </p>
</form>


         <a href="{{ path('criteria') }}" class="btn">
      <i class="icon-chevron-left"></i>
      Retour à la liste
    </a>
</br> </br>
        <form action="{{ path('criteria_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit" class="btn btn-danger">Supprimer</button>
        </form>


</div>


{% endblock %}